package com.wbb.constant;

public enum ResultConstants {

    SUCCESS("1","操作成功"),
    FAIL("-1","操作失败"),
    SUCCESS_LOGIN("2","登录成功"),
    PARAMS_NULL("3","账号或密码不能为空"),
    ACCOUNT_INEXISTENCE("4","该账户不存在"),
    PASSWORD_ERROR("5","密码错误"),
    TOKEN_INVALID("-3","token无效");

    private String code;
    private String message;

    ResultConstants(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
